//
//  Shader.vsh
//  Renderbunny
//
//  Created by Holmes Futrell on 1/20/11.
//  Copyright 2011 Holmes Futrell. All rights reserved.
//

uniform mat4 projectionMatrix;
uniform mat4 modelViewMatrix;

attribute vec4 position;
attribute float age_in;

varying float age_geom;

void main()
{
	
	age_geom = age_in;
	gl_PointSize = 0.2 * ( 1.0 - sqrt(age_geom) );
    gl_Position =  modelViewMatrix * position;
	
}